package com.fangcun.bean.api.floor.response;

import java.util.Date;
import java.util.List;

import org.springframework.util.StringUtils;

import com.fangcun.common.util.PublicMethod;

import lombok.Data;

/**
 * @作者： 陳曉鬆 @时间： 2021年1月4日 - 上午10:14:32 @description：->
 */
@Data
public class TeahouseResponse {

	private Long id;

	private String provinceName;

	private String cityName;

	private String areaName;

	private String street;

	private String phone;

	private Date startTime;

	private Date endTime;

	private String distance;

	private String longitude;

	private String latitude;

	private List<FloorResponse> floors;

	public String getDistance() {
		if (!StringUtils.isEmpty(distance)) {
			distance = PublicMethod.TransNPoint(Double.valueOf(distance), "00") + "";
		}
		return distance;
	}

}
